package cn.singlewindow.ha.util.collector.integration.util;

import cn.singlewindow.ha.util.collector.common.util.SpringContextUtils;
import org.springframework.messaging.Message;

public class MessageUtils {

    public static void sendMessage(Message message) {
        SpringContextUtils.getSendGateway().sendMessage(message);
    }
    public static void errorSend(Message message) {
        SpringContextUtils.getSendGateway().errorSend(message);
    }
    public static void errorRece(Message message) {
        SpringContextUtils.getSendGateway().errorRece(message);
    }
    public static void backupSend(Message message) {
        SpringContextUtils.getSendGateway().backupSend(message);
    }
    public static void backupRece(Message message) {
        SpringContextUtils.getSendGateway().backupRece(message);
    }
    public static void backupMessage(Message message) {
        SpringContextUtils.getSendGateway().backupMessage(message);
    }
}
